package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Supplier;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface SupplierService {

	public Supplier saveSupplier(Supplier supplier);

	public Set<Supplier> loadSuppliers();

	public Set<Supplier> loadReferenceSuppliers(Set<Supplier> suppliers);

	public Set<Supplier> loadSuppliersByIdSet(Set<Integer> suppliersId);

	public Map<String, ?> loadSupplierObjectReferencedSet(Supplier supplier);

	public Map<String, ?> loadSupplierClassReferencedSet(Supplier supplier);

	public void deleteSupplier(Supplier supplier);

	public void deleteSuppliers(Set<Integer> deleteSuppliersId);

	public List<Supplier> findAllSuppliers(Integer startResult, Integer maxRows);

	public Supplier findSupplierByPrimaryKey(Integer id);

	public Integer countSuppliers();

	public Integer countSuppliers(CmiPagination page);

	public Integer countSuppliersByName(String queryName);

	public Integer countSuppliersByDetachedCriteria(CmiPagination page);

}
